﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="ImageResizer.aspx.cs" Inherits="this_is_my_zone.ImageResizer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <asp:FileUpload ID="imgUpload" runat="server" />
    <table>
        <tr>
            <td>Image Type : </td>
            <td>
                <asp:DropDownList ID="targetType" runat="server">
                    <asp:ListItem Value="PNG">PNG</asp:ListItem>
                    <asp:ListItem Value="JPG">JPG/JPEG</asp:ListItem>
                    <asp:ListItem Value="TIFF">TIFF</asp:ListItem>
                    <asp:ListItem Value="GIF">GIF</asp:ListItem>
                    <asp:ListItem Value="ICO">ICON</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>Choose Resolution [W x H] : </td>
            <td><asp:TextBox ID="txtWidth" runat="server" MaxLength="4"></asp:TextBox> x <asp:TextBox ID="txtHeight" runat="server" MaxLength="4"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td><asp:Button ID="btnUpload" runat="server" Text="Resize" OnClick="btnUpload_Click" UseSubmitBehavior="true" /></td>
        </tr>
    </table>
</div>
</asp:Content>